package com.bff.bjj.musicobjects;

import java.net.URL;

/**
 * Represents a song in BJJ
 * 
 * @author Bill Findeisen
 */
public class BJJSong extends BJJPlaylistItem {

    /**
     * Default constructor
     */
    public BJJSong() {
    }

    @Override
    public String toString() {
        return (getId() + " - " + getArtist() + " - " + getAlbum().getName() + " - " + getName());
    }

    /**
     * Returns the @{link BJJArtist} of the song
     * @return the @{link BJJArtist}
     */
    @Override
    public String getArtist() {
        return getAlbum().getArtist();
    }

    /**
     * Same as name.
     * @return the title
     */
    @Override
    public String getTitle() {
        return getName();
    }

    @Override
    public boolean equals(Object object) {
        return super.equals(object);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
